package com.hiquety.tcb.task;

import javafx.concurrent.Task;

public class ClipboardTask extends Task<Number> {
    @Override
    protected Number call() throws Exception {
        boolean flag = false;
        do {
            if (flag) {
                this.updateMessage("1");
            } else {
                this.updateMessage("0");
            }
            flag = !flag;
            Thread.sleep(1000);
        } while (true);
    }
}
